//
//  DKAuthRightCongraView.m
//  DanKU
//
//  Created by 蓝鳍互娱 on 2023/12/9.
//

#import "DKAuthRightCongraView.h"
@interface DKAuthRightCongraView()
@property (nonatomic,strong) UIImageView *dk_AuthSigleCongraImgView;
@property (nonatomic,strong) UIImageView *dk_AuthSigleCongraHeadImgView;
@property (nonatomic,strong) UIImageView *dk_AuthSigleCongraValueImgView;
@property (nonatomic,strong) UIImageView *dk_AuthSigleCongraBottomImgView;
@end
@implementation DKAuthRightCongraView
-(instancetype)init{
    if(self == [super init]){
        [self dk_addSubView];
    }
    return self;
}
- (void)dk_addSubView{
    self.dk_AuthSigleCongraImgView = [[UIImageView alloc] init];
    self.dk_AuthSigleCongraImgView.image = DK_GetImage(@"dk_HomeCongratulaRightBg");
    self.dk_AuthSigleCongraImgView.userInteractionEnabled = YES;
    [self addSubview:self.dk_AuthSigleCongraImgView];
    [self.dk_AuthSigleCongraImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(@(DK_IsWidthScale(0)));
    }];
    self.dk_AuthSigleCongraHeadImgView = [[UIImageView alloc] init];
    self.dk_AuthSigleCongraHeadImgView.image = DK_GetImage(@"dk_HomeCongratulaRightHead");
    self.dk_AuthSigleCongraHeadImgView.userInteractionEnabled = YES;
    [self addSubview:self.dk_AuthSigleCongraHeadImgView];
    [self.dk_AuthSigleCongraHeadImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(@(DK_IsWidthScale(28)));
        make.centerX.equalTo(self);
        make.width.equalTo(@(DK_IsWidthScale(92)));
        make.height.equalTo(@(DK_IsWidthScale(12)));
    }];
    self.dk_AuthSigleCongraValueImgView = [[UIImageView alloc] init];
    self.dk_AuthSigleCongraValueImgView.image = DK_GetImage(@"dk_HomeCongratulaRightValue");
    self.dk_AuthSigleCongraValueImgView.userInteractionEnabled = YES;
    [self addSubview:self.dk_AuthSigleCongraValueImgView];
    [self.dk_AuthSigleCongraValueImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.dk_AuthSigleCongraHeadImgView.mas_bottom).offset(DK_IsWidthScale(15));
        make.centerX.equalTo(self);
        make.width.equalTo(@(DK_IsWidthScale(115)));
        make.height.equalTo(@(DK_IsWidthScale(16)));
    }];
    self.dk_AuthSigleCongraBottomImgView = [[UIImageView alloc] init];
    self.dk_AuthSigleCongraBottomImgView.userInteractionEnabled = YES;
    self.dk_AuthSigleCongraBottomImgView.image = DK_GetImage(@"dk_HomeCongratulaRightIcon");
    [self addSubview:self.dk_AuthSigleCongraBottomImgView];
    [self.dk_AuthSigleCongraBottomImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self.dk_AuthSigleCongraValueImgView.mas_bottom).offset(DK_IsWidthScale(17));
        make.width.equalTo(@(DK_IsWidthScale(20)));
        make.height.equalTo(@(DK_IsWidthScale(20)));
    }];
}
@end
